let a = "u";
//支持使用变量
let reg = new RegExp(a, "g");
let hd = "houdunren.com";

console.log(reg.test(hd));
